package com.yc.cinema;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Data
@Component
public class Computer2 {

    @Autowired // Spring 的注解 默认 byType
    private USB usb;
    @Autowired
    private HardDisk hardDisk;
}
